import random
class Solution(object):

    def __init__(self, nums):
        """
        :type nums: List[int]
        """
        self.prev = nums
        self.s = self.prev.copy()

    def reset(self):
        """
        :rtype: List[int]
        """
        self.s = self.prev.copy()
        return self.s

    def shuffle(self):
        """
        :rtype: List[int]
        """
        random.shuffle(self.s)
        return self.s



